<?php
	
	//set le titre drupal
	drupal_set_title('Liste des actions des permanenciers');
	
			
	echo '
	<div class="listePermactions" style="font-size:10px;"> 
		<table>
			<thead>
				<tr>
					<th style="width:140px;">
						Date
					</th>
					<th style="width:200px;">
						Nom Permanencier
					</th>
					<th>
						Action r&eacute;alis&eacute;e
					</th>
				</tr>
			</thead>
			<tbody>';
		$q = 0;
		foreach($listPermaction as $action)
		{
			if (is_null($action['email']))
				$action['email'] = 'Utilisateur supprim&eacute;';
			
			$q++;
			if (isPair($q))
				$class = 'odd';
			else
				$class = 'white';
			echo '
				<tr class="'.$class.'">
					<td>
						'.$action['date']->format('d-m-Y  H:i:s').'
					</td>
					<td>
						'.$action['firstname'].' '.$action['lastname'].' ('.$action['email'].')
					</td>
					<td>
						'.$action['action'].'
					</td>
				</tr>';
		}
			echo '	
			</tbody>
			<tfoot>
				<tr>
					<td colspan="3">
						<center>
							Pages (' . $pagination->nb_pages . ' pages pour ' . $pagination->nb_datas . ' r&eacute;sultats) : ' . $pagination->getFirstLinks() . $pagination->getLinks() . $pagination->getLastLinks().'
						</center>
					</td>
				</tr>
			</tfoot>
		</table>
	</div>';

?>
